import 'package:get/get.dart';
import 'package:azring/models/group_interaction_models.dart';

/// 群组详情页状态
class GroupDetailState {
  /// 群组ID
  RxInt groupId = 0.obs;
  
  /// 群组名称
  RxString groupName = ''.obs;
  
  /// 群组代码
  RxString groupCode = ''.obs;
  
  /// 当前选中的数据类型 (0: 身体活力, 1: 睡眠, 2: 能量平衡)
  RxInt selectedDataType = 0.obs;
  
  /// 成员列表
  RxList<GroupMemberData> memberList = <GroupMemberData>[].obs;
  
  /// 互动墙列表
  RxList<GroupInteraction> interactionList = <GroupInteraction>[].obs;
  
  /// 是否正在加载
  RxBool isLoading = false.obs;
  
  /// 是否正在加载互动墙
  RxBool isLoadingInteractions = false.obs;
  
  /// 当前日期
  RxString currentDate = ''.obs;
  
  /// 展开的卡片索引
  RxSet<int> expandedCards = <int>{}.obs;
  
  /// 互动墙筛选类型 (true: 今日, false: 全部)
  RxBool isShowingToday = true.obs;
  
  /// 全部模式下是否展开显示所有数据
  RxBool isAllExpanded = false.obs;
}
